/*--------------map--------------*/
const ROWS = 30;
const COLS = 20;
const BLOCK_SIZE = 20;

/*--------------坦克方块--------------*/
const blockAlive = [
	// up
	[
		[0, 1, 0],
		[1, 1, 1],
		[1, 0, 1]
	],
	// right
	[
		[1, 1, 0],
		[0, 1, 1],
		[1, 1, 0]
	],
	// down
	[
		[1, 0, 1],
		[1, 1, 1],
		[0, 1, 0]
	],
	// left
	[
		[0, 1, 1],
		[1, 1, 0],
		[0, 1, 1]
	]
];

const blockDead = [
	[
		[1, 0, 1],
		[0, 1, 0],
		[1, 0, 1]
	]
];

const blockBullet = [
	[
		[1]
	]
];